﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Restful_Api.Migrations
{
    public partial class AddBankrupTime : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("06634c94-9672-4f25-acff-f0d99183e9d9"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("1d1e286c-bec0-48b2-9c8f-34cd32f83550"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("204ce5cf-953b-4a17-95eb-f46cfb1da2f1"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("20d8b32d-3cda-4589-b678-0327de608b8e"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("431701c6-3cf3-41cc-9524-bbd7216544b9"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("477f8b6e-00c5-400b-94ed-3b075df6fe01"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("5b70788d-a86f-45ae-a94f-7f5d80b8a0ae"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("6e494c18-d032-4651-981c-7353b86e023c"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("79f77f1c-eb9e-4e96-bd9b-d62d68e67df4"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("82528380-459b-48a2-b935-36aaf2ff44ea"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("88fecc1b-e129-4577-b254-c361e0b24654"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("adcd7517-d1ab-497a-9fce-1268744ef755"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("b9f007cb-d938-4ef5-94fa-e40c94e88ced"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("ce327f49-fa70-4c4c-8223-9f656c7953a6"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("df2d5ab1-1320-49d4-b1c1-30f5bb17f161"));

            migrationBuilder.DeleteData(
                table: "Employees",
                keyColumn: "Id",
                keyValue: new Guid("11699bce-340a-4be5-9609-c676b1f3d8ad"));

            migrationBuilder.DeleteData(
                table: "Employees",
                keyColumn: "Id",
                keyValue: new Guid("2e81ff97-2f00-4232-9027-1a5f3540ed4d"));

            migrationBuilder.DeleteData(
                table: "Employees",
                keyColumn: "Id",
                keyValue: new Guid("3e2325ed-32e1-41e3-9f8e-9373c8021bb1"));

            migrationBuilder.DeleteData(
                table: "Employees",
                keyColumn: "Id",
                keyValue: new Guid("7a5dc5a3-35db-48d5-91b7-ae7fd611bd0f"));

            migrationBuilder.AddColumn<DateTime>(
                name: "BankrupTime",
                table: "Companies",
                nullable: true);

            migrationBuilder.InsertData(
                table: "Companies",
                columns: new[] { "Id", "BankrupTime", "Country", "Industry", "Introduction", "Name", "Product" },
                values: new object[,]
                {
                    { new Guid("ebdbc5c4-cfa7-4faf-8562-c02a06cc683a"), null, "美国", "计算机", "微软的公司简介", "微软公司", "微软的产品" },
                    { new Guid("e3af120a-e0de-4cea-a510-8fb4a3607536"), null, null, null, "桃子的公司简介", "桃子", null },
                    { new Guid("9b1abf1e-5347-43d9-89d5-ac87e62143b8"), null, null, null, "葡萄的公司简介", "葡萄", null },
                    { new Guid("6044cebc-abc3-489a-86da-3edc1ed9f603"), null, null, null, "橙子的公司简介", "橙子", null },
                    { new Guid("568c955a-1e6f-4a9f-8a03-a3a90062f325"), null, null, null, "香蕉的公司简介", "雪梨", null },
                    { new Guid("b4ad78f8-d0ad-4bea-ba75-90e1b8e0e99a"), null, null, null, "香蕉的公司简介", "香蕉", null },
                    { new Guid("888b9591-e520-4d06-965b-13412df11ed7"), null, null, null, "Vivo的公司简介", "Vivo", null },
                    { new Guid("a849cce3-a121-4494-8bc2-622ca241f039"), null, null, null, "苹果的公司简介", "苹果", null },
                    { new Guid("d4f57d3b-5fcb-4d27-a2ab-17d5b81aec3b"), null, null, null, "魅族的公司简介", "魅族", null },
                    { new Guid("78efd368-5078-4c67-a4f6-5799d65a6dc4"), null, null, null, "三星的公司简介", "三星", null },
                    { new Guid("2e0c826c-aa73-49c5-aa5c-611ead232432"), null, null, null, "小米的公司简介", "小米", null },
                    { new Guid("7fd72cd8-2255-440a-9e80-a4d3a58000a4"), null, "中国", "手机", "HuaWei的公司简介", "华为", "华为的产品" },
                    { new Guid("53e2765e-0332-49da-93bc-e0869b3a6533"), null, "中国", "直播", "BiliBili的公司简介", "BiliBili", "bili的产品" },
                    { new Guid("7c0423f2-8ff3-461c-aa45-f329c5563e57"), null, "中国", "浏览器", "谷歌的公司简介", "Google", "谷歌的产品" },
                    { new Guid("5358fb2b-efe9-428c-b83e-ad671c5bb8c5"), null, null, null, "oppo的公司简介", "oppo", null }
                });

            migrationBuilder.InsertData(
                table: "Employees",
                columns: new[] { "Id", "CompanyId", "DateOfBirth", "EmployeeNo", "FistName", "Gender", "LastName" },
                values: new object[,]
                {
                    { new Guid("d3930d34-df22-4db1-a09d-0627d8f6a9a4"), new Guid("7c0423f2-8ff3-461c-aa45-f329c5563e57"), new DateTime(2020, 8, 20, 0, 0, 0, 0, DateTimeKind.Unspecified), "G003", "小", 2, "Lu" },
                    { new Guid("ae0d260e-e1ad-4816-b6e2-a33fe583166c"), new Guid("ebdbc5c4-cfa7-4faf-8562-c02a06cc683a"), new DateTime(2020, 8, 10, 0, 0, 0, 0, DateTimeKind.Unspecified), "G003", "张", 1, "三" },
                    { new Guid("059eeecc-6d56-4474-b97c-7f6492a4b14a"), new Guid("ebdbc5c4-cfa7-4faf-8562-c02a06cc683a"), new DateTime(2020, 8, 15, 0, 0, 0, 0, DateTimeKind.Unspecified), "G003", "李", 1, "四" },
                    { new Guid("fa798e79-f729-488f-b7bf-40670e2d2174"), new Guid("53e2765e-0332-49da-93bc-e0869b3a6533"), new DateTime(2020, 8, 29, 0, 0, 0, 0, DateTimeKind.Unspecified), "G003", "小", 1, "江" }
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("2e0c826c-aa73-49c5-aa5c-611ead232432"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("5358fb2b-efe9-428c-b83e-ad671c5bb8c5"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("53e2765e-0332-49da-93bc-e0869b3a6533"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("568c955a-1e6f-4a9f-8a03-a3a90062f325"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("6044cebc-abc3-489a-86da-3edc1ed9f603"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("78efd368-5078-4c67-a4f6-5799d65a6dc4"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("7c0423f2-8ff3-461c-aa45-f329c5563e57"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("7fd72cd8-2255-440a-9e80-a4d3a58000a4"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("888b9591-e520-4d06-965b-13412df11ed7"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("9b1abf1e-5347-43d9-89d5-ac87e62143b8"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("a849cce3-a121-4494-8bc2-622ca241f039"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("b4ad78f8-d0ad-4bea-ba75-90e1b8e0e99a"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("d4f57d3b-5fcb-4d27-a2ab-17d5b81aec3b"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("e3af120a-e0de-4cea-a510-8fb4a3607536"));

            migrationBuilder.DeleteData(
                table: "Companies",
                keyColumn: "Id",
                keyValue: new Guid("ebdbc5c4-cfa7-4faf-8562-c02a06cc683a"));

            migrationBuilder.DeleteData(
                table: "Employees",
                keyColumn: "Id",
                keyValue: new Guid("059eeecc-6d56-4474-b97c-7f6492a4b14a"));

            migrationBuilder.DeleteData(
                table: "Employees",
                keyColumn: "Id",
                keyValue: new Guid("ae0d260e-e1ad-4816-b6e2-a33fe583166c"));

            migrationBuilder.DeleteData(
                table: "Employees",
                keyColumn: "Id",
                keyValue: new Guid("d3930d34-df22-4db1-a09d-0627d8f6a9a4"));

            migrationBuilder.DeleteData(
                table: "Employees",
                keyColumn: "Id",
                keyValue: new Guid("fa798e79-f729-488f-b7bf-40670e2d2174"));

            migrationBuilder.DropColumn(
                name: "BankrupTime",
                table: "Companies");

            migrationBuilder.InsertData(
                table: "Companies",
                columns: new[] { "Id", "Country", "Industry", "Introduction", "Name", "Product" },
                values: new object[,]
                {
                    { new Guid("431701c6-3cf3-41cc-9524-bbd7216544b9"), "美国", "计算机", "微软的公司简介", "微软公司", "微软的产品" },
                    { new Guid("6e494c18-d032-4651-981c-7353b86e023c"), null, null, "桃子的公司简介", "桃子", null },
                    { new Guid("ce327f49-fa70-4c4c-8223-9f656c7953a6"), null, null, "葡萄的公司简介", "葡萄", null },
                    { new Guid("477f8b6e-00c5-400b-94ed-3b075df6fe01"), null, null, "橙子的公司简介", "橙子", null },
                    { new Guid("20d8b32d-3cda-4589-b678-0327de608b8e"), null, null, "香蕉的公司简介", "雪梨", null },
                    { new Guid("b9f007cb-d938-4ef5-94fa-e40c94e88ced"), null, null, "香蕉的公司简介", "香蕉", null },
                    { new Guid("204ce5cf-953b-4a17-95eb-f46cfb1da2f1"), null, null, "Vivo的公司简介", "Vivo", null },
                    { new Guid("88fecc1b-e129-4577-b254-c361e0b24654"), null, null, "苹果的公司简介", "苹果", null },
                    { new Guid("5b70788d-a86f-45ae-a94f-7f5d80b8a0ae"), null, null, "魅族的公司简介", "魅族", null },
                    { new Guid("79f77f1c-eb9e-4e96-bd9b-d62d68e67df4"), null, null, "三星的公司简介", "三星", null },
                    { new Guid("df2d5ab1-1320-49d4-b1c1-30f5bb17f161"), null, null, "小米的公司简介", "小米", null },
                    { new Guid("82528380-459b-48a2-b935-36aaf2ff44ea"), "中国", "手机", "HuaWei的公司简介", "华为", "华为的产品" },
                    { new Guid("adcd7517-d1ab-497a-9fce-1268744ef755"), "中国", "直播", "BiliBili的公司简介", "BiliBili", "bili的产品" },
                    { new Guid("1d1e286c-bec0-48b2-9c8f-34cd32f83550"), "中国", "浏览器", "谷歌的公司简介", "Google", "谷歌的产品" },
                    { new Guid("06634c94-9672-4f25-acff-f0d99183e9d9"), null, null, "oppo的公司简介", "oppo", null }
                });

            migrationBuilder.InsertData(
                table: "Employees",
                columns: new[] { "Id", "CompanyId", "DateOfBirth", "EmployeeNo", "FistName", "Gender", "LastName" },
                values: new object[,]
                {
                    { new Guid("2e81ff97-2f00-4232-9027-1a5f3540ed4d"), new Guid("9e48c982-c52b-46d9-bc9c-d98da8fee770"), new DateTime(2020, 8, 20, 0, 0, 0, 0, DateTimeKind.Unspecified), "G003", "小", 2, "Lu" },
                    { new Guid("3e2325ed-32e1-41e3-9f8e-9373c8021bb1"), new Guid("7cad215a-131c-4d7b-9167-c9a755143425"), new DateTime(2020, 8, 10, 0, 0, 0, 0, DateTimeKind.Unspecified), "G003", "张", 1, "三" },
                    { new Guid("11699bce-340a-4be5-9609-c676b1f3d8ad"), new Guid("7cad215a-131c-4d7b-9167-c9a755143425"), new DateTime(2020, 8, 15, 0, 0, 0, 0, DateTimeKind.Unspecified), "G003", "李", 1, "四" },
                    { new Guid("7a5dc5a3-35db-48d5-91b7-ae7fd611bd0f"), new Guid("ac83f843-9cd2-449e-a5f6-656229c617d5"), new DateTime(2020, 8, 29, 0, 0, 0, 0, DateTimeKind.Unspecified), "G003", "小", 1, "江" }
                });
        }
    }
}
